#ifndef LINEUPS_H
#define LINEUPS_H

#include <QWidget>
#include "team.h"
#include <QList>
#include <QVector>
#include "playerradio.h"
#include "scorekeeperscreen.h"
#include "teamlineupscreen.h"

namespace Ui {
class Lineups;
}

class Lineups : public QWidget
{
    Q_OBJECT
    
public:
    explicit Lineups(QWidget *parent = 0);
    ~Lineups();
    void setHome(Team* home);
    void setAway(Team* away);
    void LoadHomePlayers();
    void LoadAwayPlayers();
    void prepareWindow();

private:
    Ui::Lineups *ui;
    Team* home_team;
    Team* away_team;
    QList<PlayerRadio*> home_players;
    QList<PlayerRadio*> away_players;
    void PopulatePitchHome();
    void PopulatePitchAway();
    QVector<Player*> home_players_vector;
    QVector<Player*> away_players_vector;
    int home_pitcher;
    int away_pitcher;
    ScoreKeeperScreen *sc;

private slots:
    void StartGame();

};

#endif // LINEUPS_H
